﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Goods.GiftEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="礼品" Height="300" Width="400" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Vertical">
                <Button Name="btnImage" Click="btnImage_Click">
                    <Image Width="80" Height="80" Name="img" Margin="3" />
                </Button>
            </StackPanel>
            
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                
                <TextBlock Text="礼品名称：" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="0" Grid.Column="1" Margin="3" VerticalAlignment="Center" Name="tbName"/>
                
                <TextBlock Grid.Row="1" Grid.Column="0" Text="出售价格：" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="1" Grid.Column="1" Name="tbPrice" Margin="3" VerticalAlignment="Center"/>
                
                <TextBlock Grid.Row="2" Grid.Column="0" Text="进货价格：" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="2" Grid.Column="1" Name="tbBuyInPrice" Margin="3" VerticalAlignment="Center"/>
            </Grid>
        </Grid>
        <Button Grid.Row="1" Name="btnSave" Content="保存" Width="60" Margin="3" VerticalAlignment="Center" Click="btnSave_Click"/>
    </Grid>
</Window>
